package com.tensquare.base.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author Macross
 * @Type Label.java
 * @Desc Label实体类，对应数据库tensquare_base的tb_label表
 * @date 2019/12/16 16:35
 */

/**
 * @Entity注解代表此类是数据库表对应的实体类
 */
@Entity
/**
 * @Table注解代表实体类对应的是哪张数据库表
 */
@Table(name = "tb_label")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "标签信息实体类")
public class Label implements Serializable {

    /**
     * @Id表示此字段为数据库表中的主键
     */
    @Id
    @ApiModelProperty(value = "标签id")
    private String id;

    /**
     * @Column表示此属性对应数据库表中的哪个字段
     */
    @Column(name = "labelname")
    @ApiModelProperty(value = "标签名")
    private String labelName;

    @ApiModelProperty(value = "标签id")
    private String state;

    @ApiModelProperty(value = "使用数量")
    private Long count;

    @ApiModelProperty(value = "是否推荐")
    private String recommend;

    @ApiModelProperty(value = "粉丝数")
    private Long fans;
}
